package com.timebank.volunteer.service.impl;

import com.timebank.volunteer.mapper.AddressBookMapper;
import com.timebank.volunteer.pojo.entity.AddressBook;
import com.timebank.volunteer.service.AddressBookService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * 地址簿 实现类
 * @author shiliuyinzhen
 */
@Service
public class AddressBookServiceImpl implements AddressBookService {

    @Autowired
    private AddressBookMapper addressBookMapper;

    /**
     * 新增地址
     * @param addressBook
     * @return
     */
    public int insertAddress(AddressBook addressBook){
        return addressBookMapper.insertAddress(addressBook);
    }
}
